// 学生信息
import request from "@/config/request"

// 获取当前家长的孩子信息列表
export const getStudentList = (id: number) => {
    return request.get(`/admin/student/my?id=${id}`)
}

// 获取学生列表
export const getStudentAllLists = () => {
    return request.get("/admin/student/list")
}

// 获取学生详情信息
export const getStudentDetail = (id: number) => {
    return request.get(`/admin/student/get?id=${id}`)
}

// 修改学生信息
export const updateStudentDetail = (data: any) => {
    return request.post("/admin/student/update", data)
}

// 删除学生信息
export const deleteStudent = (id: number) => {
    return request.post(`/admin/student/delete?id=${id}`)
}
